Well they could have stocked up prior to WWII and rationalised the distribution of chocolate among the military/civilians.
Also, they could have bought it from some of the neutral countries with which they had open trade routes, like Turkey, Switzerland or Sweden, for example. Spain and Portugal even.