return the size in fs_write