set the read and write block_nr by block.c functions