A modular invariance on the theta functions defined on vertex operator algebras