Varieties of linear algebras with colength one