He's still under Danzo's influence. So all that bla-bla about telling Sakura how she hurt Naruto, probably was just a ploy to make them take Sai there, so he could stay and spy for Danzo. Even if he has become Naruto's friend, he still has that obedience seal on his tongue.