iomap: Convert write_count to write_bytes_pending