You indicate that you "designed/wrote" the software "for a small company"--that is, you did it as part of your employment. In that case, it belongs to him even without you signing an intellectual property agreement. Anything an employee does as part of his/her job or for his/her employer is a "work made for hire" and automatically belongs to the employer.