malloc: separate creating memseg list and malloc heap