According to Article 334.30, NM is secured within 12" of the box. The joist is close enough to provide this support.

Dave