implement r_io_pwrite and vio debug define