Can one fly up side down while a glass of water keeps full due to g-forces?
Yes, as long as you continue the loop, and don't fly the plane in the upside-down position. 

See, for example: Barrel roll with a glass of water on a glider