Fix type of sector_idx in inode_write_at().