Cached data is now flushed to disk when flush is called i.e. when a file handle is closed