So, if I'm understanding this correctly, Ventus reconnected his heart with Sora in order tocomplete the "gaps" in his heart that Vanitas had left. The fight that erases Vanitas results in him losing his heart (or parts of it), so his body is hidden inside Castle Oblivion by Aqua.
Now assumedly...