While inflating a balloon, whole air escapes from it when its mouth is open. This is because
The air inside the balloon was exerting pressure in all directions
The air inside the balloon was exerting pressure on the walls and hence as its mouth was open, the whole air escaped into the atmosphere.