Macbook won't sleep with VGA monitor connected
I'm afraid that's the appropriate behaviour, and it's called Closed Clamshell or Closed Display mode.

Using the  Option+Command+Eject shortcut will  put the computer to sleep.

On the other hand, unplugging the Power Adapter from the MacBook and then closing the lid, will do the trick, too.