ceph: refactor ceph_write_begin, fix ceph_page_mkwrite