Fixed rw_block

will now compile, until read/write are done testing cant be finished