Quasifinite representations of a Lie algebra of Block type