do_pwrite file extend and length fix
rnw fix in get_extent