Can fish live in the dark completely?
There are lots of fish that live in environments without any light (below 1000m in the ocean there is no useful light for vision), however most aquarium fish have not evolved to live in those sorts of conditions. In the future, I think your best bet would be to remove the fish, clean the tank, and then try to manage your nutrient inputs so that the algae doesn't grow out of control.