Implemented ospfs_write()

Implemented file writing in ospfs_write(). Untested.