A wavelength-scale cavity is generated by printing a carbonaceous nano-block on a photonic-crystal waveguide. The nanometer-size carbonaceous block is grown at a pre-determined region by the electron-beam-induced deposition method. The wavelength-scale photonic-crystal cavity operates as a single mode laser, near 1550 nm with threshold of approximately 100 microW at room temperature. Finite-difference time-domain computations show that a high-quality-factor cavity mode is defined around the nano-block with resonant wavelength slightly longer than the dispersion-edge of the photonic-crystal waveguide. Measured near-field images exhibit photon distribution well-localized in the proximity of the printed nano-block. Linearly-polarized emission along the vertical direction is also observed.