File class can now write portions of a file.

It updates the buffers, it writes offsets currently not held in the buffer directly while update the buffer for delayed writing for offsets in memory.