Implemented cohesive element write-back for the output file