Ballmer gets a bad rap but he was the one that got them moving towards Azure and cloud. He made MS a lot of money, they didn’t suffer under him. It was mostly just optics where he didn’t look good.
Although it's plausible that had he stayed on for say another five more years, we would have seen the fruits of his early investments pay off and the stock appreciate accordingly.