igc/writer: Extracted write_record() method
igc/writer: Added write_fix_extensions() method