Edit:I tried twice to post the complete code,but no success.
well here is what you need
use bp_get_loggedin_user_link().It will point to user profile.Use it with a combination of is_user_logged_in() mto make it more useful
you mean this?
<?php echo bp_get_loggedin_user_link($bp->loggedin_user->id) ?>