Algebras of bounded analytic functions on subvarieties of the noncommutative ball