add missing delete in writeSpecDensitySubDomain