Communism has nothing to do with resource misallocation. That’s a thing that some communist governments did, as did democratic governments and theocratic governments. It’s really not surprising that a populist takeover by mob rule did not instantly create an efficient system of communist government- that doesn’t mean it’s impossible to work out an effective system of communist government. That means they were too impatient to gradually work out a system that would actually improve the circumstance for everyone involved.