Write calibration data to flash