Extended InMemoryFile to support writes