implemented do_write in vfs_syscall, some error code rem to handle