For years, SmartBiz helped banks make small-business loans. Then it bought one. The bet: fix the economics behind the application, and more Main Street businesses can get funded.