fix for rel_head=-1 in get_write_buf_wait_data