add function get_a_block and release ablock