Energy-saving flash-heating boiler for hot water