[SPARK-983] complete disk spill logic