write clusterPID to file