You are right, I didn't put Dray's number in there. Even with that, they are at roughly 76M with a potential 90M cap. They have plenty of opportunity to shake things up if they want to - while it's not a guarantee, the potential is there. If they don't bring back Ezeli and know they want to replace Barnes, they will have plenty of money.
However, even with 8M, I believe they can talent-wise replace Barnes. That would basically be a high end MLE contract which for Barnes actual on court production is probably a fair talent replacement IMO. But I do think the end up keeping Ezeli and Barnes spending their money that way. I was just speaking in a bubble about his talent level.