Apparently there’s some sort of ‘sore loser’ rule preventing him from doing so, at least according to USATODAY
Sore loser rules don’t apply to write-ins. They apply to names printed on a ballot, presumably as an independent or third party.