The blind homeless man is actually just another aspect of God (Morgan Freeman). He has been watching Bruce (Jim Carrey) every step of the way. Everything works out in the end, mostly by having everything stay the same.
(Links open in new window)
Read more about this film at The Internet Movie Database.