added fsync to ensure written data is stored in the lazy-upload buffer