changed ospfs_write()