change a elegant way for SortShuffleWriter.scala