rowrecs_to_blocks function

Map a data records from row records to block records.