is_write should be 1 when writing