It seems to me that a God who is all-powerful, all knowing, all loving, all everything, could have fixed things so that the better people are, the better life treats them. I like logical explanations for things, but the fact is life isn't fair and people don't always get what they deserve.
Psalms is one of my favorite books of the bible because it one of the most human. Take the psalmist writing in 73; asking questions about living in this world, yet somehow finding faith to face the unfairness of life.
I don't claim that faith provides all of the answers, but it does provide the strength to carry on. Life is complicated, and many don't get a fair chance in life. Things that shouldn't happen do. It's easy to have a negative reaction to these incidents. Generally people will play by the rules when they believe the rules apply, but sometimes life just taunts us to throw out the rules and play the game our way instead. Let's face it; no one wants to be a sucker or the loser. So there are two real choices as I see things. We can blame God and lose our faith... sort of the "if righteousness doesn't pay off, why do it?" option...clearly unfairness shakes our faith, but faith is the alternative here. If we keep the faith and trust in God - hold on - we can come out the other side of injustice and unfairness. When life is unfair, the worst thing we can do is turn away from God, because that is the time we really need Him the most.
I believe God provides inner resources to deal with outer disappointments. There aren't always easy answers or even satisfying ones, but faith is the answer to recovery.