Write calculated errors to correct directory