resurrection spells require the soul to be willing to return, so a big question is whether the emperor identifies as Balduran because it has Balduran's soul or not. If it has the soul and the soul has come to enjoy the perks of being a mind flayer than it may be unwilling to return to a human body.