I don’t think he planned to desert from the beginning. After all, why would he wait almost a decade and become Lord Commander if that was his intent?
Rather, I think Bloodraven learned something out on a ranging that led him to believe that it was more important for him to stay where he was than come back.
My hypothesis is that Bloodraven’s ranging was a cover for his implantation in the tree, which he knew would make it impossible for him to return.