It is properly spelled doughnut. "donut" is like "kreme" - an incorrect but "cute" spelling popularized when it gets used in trade names, etc.

Dunkin' Donuts technically sells doughnuts, but as it's their store, they can name them anything they like!