A note on a weighted Sobolev inequality