Get vocabulary name from vid function
You can load the vocabulary object using taxonomy_vocabulary_load() and get the name that way:

$vid = 1; // Vocabulary ID
$vocab = taxonomy_vocabulary_load($vid);
$vocab_name = $vocab-&gt;name;