Flushed the file buffer after a write.
Merge pull request #2 from fidlej/topic_flush

Flushed the file buffer after a write