I wouldn't play at the top at all. If you block Black on the right, he can either shoulder-hit you on the low corner enclosure or invade. I'd play something more active, using your own stones to attack rather than to defend/surround territory.
My candidate moves are:
'a' might be a nice probe for later. 'b' seems to use your wall from the top, furthermore Black has weaknesses in his bottom right corner shape, so you can play 'c' in the future and threaten connection or establishing the beginning of a base. Though not immediately because attacking the lone black stone is more important.
After you got some stones in the center through the attack on the right, you could play 'd' or go in even deeper, depending on the center.
- Click Here To Show Diagram Code
[go]$$B
$$ +---------------------------------------+
$$ | . . . . . . . . . . . . . . . . . X . |
$$ | . . . . . . . . . . . . . X X . . . . |
$$ | . . . . . O . . . . . . O O O X X X . |
$$ | . O . O . . . . . , . . . . . O O X . |
$$ | . . . . . . . . . . . . . . . . . O . |
$$ | . . X . X . . . . . . . . . . . O . . |
$$ | . . . a . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . X . . . . . . . . . . . . . . . . |
$$ | . . . , . . . . . , . . . . . , X . . |
$$ | . . O . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . b . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . O . . . . . . . . . . . . . c . . |
$$ | . . . . . . . . . . . . . X X . . . . |
$$ | . O . X . . d . . , . . . X O X X . . |
$$ | . . X . . . . . . . X . . O O O O . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ | . . . . . . . . . . . . . . . . . . . |
$$ +---------------------------------------+[/go]