vfs_write passing some tests, needs to be cleaned up