wirte critical path of partitioning result to file in the output directory