Using memcpy for fs_write.