fix off-by-one error in smatrix_rmap_write_batch