Origin of the stellar disk in the nucleus of the SB0 NGC 1023