Probably the donut would have needed more baking time. Either, it was taken out of the oil too soon, or perhaps your oil was not hot enough.