calloc the segment in map