My take on the situation:
-Clear offensive foul by Ray intially (Barea did embellish the contact however)
-Clear flagrant foul by Barea afetrwards, he made zero attempt to make a play on the ball. If anything, it looked like a textbook shoulder check you'd see in a hockey game.
-No way it should have been a flagrant 2, but given the circumstance, I'm not suprised. The NBA seems to go out of their way to de-escalate any situation with the potential for further altercations.
-Miami once again, gets the benefit of a bad call. Had the official simply called the original offensive foul on Ray, the rest never happens.
-Bottom line: Barea shouldn't have reacted in the manner he did. A missed called on a play like this is no excuse to throw shoulder into someone, it's a dirty play. That said, I absolutely loved it. Seeing Ray get punked like that was sweet.