vfs-write and truncate