add flush function to gaia file system.