Inflation and deflation of foil balloons