Flush document to disk if it does not exist

When a new file is created, the file server tries to read it from disk.
If it does not exist, it is a good time to flush the newly created empty
file.