Like poita said, there is a danger in assuming colors should always be balanced. Take the example of the film Gladiator:
The above image shows what was shot on camera, while below is what is seen in the final film. Color balancing the below image with the algorithm, results in an image that closely matches what was shot on film, but not what was seen in theatres: