President Obama got an earful from famed mega-producer Byron Allen Thursday night ... punctuated by the n-word.