implemented ospfs_write, made correctly