The water heats up in the microwave and turns to steam. This pushes air out of the bottle. When the steam cools it contracts and turns back into liquid water. This lowers the pressure inside the bottle allowing the higher outside pressure to push the balloon inside the bottle.