If i can guess correctly, and what i have seen so far in Kishimoto's style, i think that BZ will betray Madara.
I think he somehow made a pact with Obito (i know that BZ is Madara's will, but even so, he's a being in his own now, or something like that).
In the end, while Madara is highly...